package com.sntra.beibi.dao;

import com.sntra.beibi.domain.Learner;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface LearnerMapper {

    int deleteByPrimaryKey(Integer id);

    int insert(Learner record);

    int insertSelective(Learner record);

    Learner selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Learner record);

    int updateByPrimaryKey(Learner record);

    int verifyPassword(String username, String password);

    int existUsername(String username);

    int addUser(Learner learner);

    int updateUserMsg(Learner record);

    int updateUserAvator(Learner record);

    int deleteUser(Integer id);

    List<Learner> allUser();

    List<Learner> userOfId(Integer id);

    List<Learner> loginStatus(String username);

}
